package com.itheima.test4case1;

public class Test {
    public static void main(String[] args) {
        /*
        假设：100块钱，分成了3个红包，现在有五个人去抢
        红包是共享数据
        五个人是五条线程
         */

        MyThread t1=new MyThread();
        MyThread t2=new MyThread();
        MyThread t3=new MyThread();
        MyThread t4=new MyThread();
        MyThread t5=new MyThread();

        t1.setName("A");
        t2.setName("B");
        t3.setName("C");
        t4.setName("D");
        t5.setName("E");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
    }
}
